package com.ybkj.o2o.zhuanche.mapper;

import com.ybkj.o2o.zhuanche.common.query.OrderReviewQuery;
import com.ybkj.o2o.zhuanche.entity.OrderReview;
import com.ybkj.o2o.zhuanche.entity.OrderReviewCriteria;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface OrderReviewMapper extends BaseMapper<OrderReview, OrderReviewCriteria, Long> {
  Long countByExample(OrderReviewCriteria example);

  int deleteByExample(OrderReviewCriteria example);

  int deleteByPrimaryKey(Long id);

  int insert(OrderReview record);

  int insertSelective(OrderReview record);

  List<OrderReview> selectByExampleWithRowbounds(OrderReviewCriteria example, RowBounds rowBounds);

  List<OrderReview> selectByExample(OrderReviewCriteria example);

  OrderReview selectByPrimaryKey(Long id);

  int updateByExampleSelective(@Param("record") OrderReview record,
      @Param("example") OrderReviewCriteria example);

  int updateByExample(@Param("record") OrderReview record,
      @Param("example") OrderReviewCriteria example);

  int updateByPrimaryKeySelective(OrderReview record);

  int updateByPrimaryKey(OrderReview record);

  
  OrderReview findOne(OrderReviewQuery orderReviewQuery);

  Integer deleteById(@Param("id")Long id, @Param("appKey")String appKey);

  OrderReview findByOrderIdAndAppKey(OrderReviewQuery orderReviewQuery);

  List<OrderReview> findByDriver(OrderReviewQuery orderReviewQuery);

  Long countByDriver(OrderReviewQuery orderReviewQuery);

}
